<?php
namespace App\Http\Resources\Mp;

use Illuminate\Http\Resources\Json\Resource;

class OfficialOrderResource extends Resource{
    public function toArray($request)
    {
        return [
            'id' => $this->id,
            'status_label' => $this->status_label,
            'eat_date' => $this->rule->eat_date,
            'type_label'=>$this->rule->type_label,
            'status'=>$this->status,
            'created_at'=> $this->created_at->format("Y-m-d H:i:s"),
            'verify_status'=> $this->review->status,
            'verify_label'=> $this->review_label,
            'num'=> $this->review->person_num
        ];
    }
}
